package com.anXin.mall.service;

import com.anXin.model.common.dtos.ResponseResult;
import com.anXin.model.mall.pojos.Order;
import com.anXin.model.mall.vos.OrderVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface OrderService extends IService<Order> {
    ResponseResult<Page<Order>> getOrdersPage(int page,int pageSize);

    ResponseResult<List<OrderVO>> getOrdersList(Long userId);

    ResponseResult<OrderVO> getOrder(Long id);

    ResponseResult<String> updataOrder(Order order);


    ResponseResult<String> deleteOrder(Long id);
}
